package com.production.CoursePlatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.production.CoursePlatform.entity.Course;
import com.production.CoursePlatform.entity.User;
import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from login where IDnumber=#{IDnumber}")
    public User login(String IDnumber);

    @Update("update login set password=#{password} where IDnumber=#{IDnumber}")
    public void update(String IDnumber,String password);
}
